<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/fn.tld" prefix="fn" %>
<script>
	$(document).ready(function() {
		$("button").button();
		$("#laneTabs").tabs();
	});
</script>
<div title="维护监测车道详细信息" id="monitoringLaneSelectDialog" class="lanedialogtitle">
	<form id="frmMonitoringLane" onSubmit="return false">
	<div class="searchbox">
		<span class="fontRed">注:</span>带"<span class="fontRed">*</span>"为必填项
			<input type="hidden" name="id" value="<c:out value='${monitoringLane.id }'/>">
			<input type="hidden" name="monitorid" value="<c:out value="${monitoringLane.monitorid}"></c:out>"/>
			<table id="monitoringLaneTable" cellspacing="0" cellpadding="0">
				<tr>
   					<td align="right" style="width:114px;">车道号(&lt;=3位)：<span class="fontRed">*</span></td>
   					<td><input type="text" name="lanenum"  value="<c:out value='${monitoringLane.lanenum }'/>" maxlength="3"></td> 
   					<td align="right" style="width: 136px;">是否可通行：</td>
					<td style="width: 230px; ">
						<select name="canvia" style="width: 188px; ">
							<option value="">--请选择--</option>
							<option value="1" ${monitoringLane.canvia==1? "selected" : ""}>是</option>
							<option value="0" ${monitoringLane.canvia==0? "selected" : ""}>否</option>
						</select>
					</td>					
  				</tr>
  				<%@ include file="../certification/certificationCommonView.jsp"%>
           	</table>
  	</div>
	<div id="laneTabs">
		<ul>
			<li><a href="#listLaneConfig">车道配置信息</a></li>
			<li><a href="#listVehicleTravelStrategy">车辆行驶策略信息</a></li>
		</ul>
		<div id="listLaneConfig">
			<div class="buttonbox"><button onclick="javascript:showSelectDialog('listLaneConfigBox','rightLaneConfigList','ajaxShowLaneConfigSelectDialog.do');">选择</button></div>
			<div id="listLaneConfigBox">
				<table id="monitoringLaneConfigList" style="min-width:800px;"cellspacing="0" cellpadding="0">
					<thead>
						<tr>
							<td>名称</td>
							<td>是否可通行</td>
							<td>最高行驶速度</td>
							<td>最低行驶速度</td>
							<td>超速起拍值</td>
							<td>低速起拍值</td>
							<td>机动车分组</td>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${listLaneConfig}" var="laneConfig">
							<tr id="objId_${laneConfig.id}" onclick="clickSelect(this)">
								<td><input type="hidden" value="${laneConfig.id }"><c:out value="${laneConfig.configname}"></c:out></td>
								<td><c:out value="${laneConfig.canvia==1? '是' : '否'}"></c:out></td>
								<td><c:out value="${laneConfig.upperviaspeedlimit}"></c:out></td>
								<td><c:out value="${laneConfig.lowerviaspeedlimit}"></c:out></td>
								<td><c:out value="${laneConfig.uppercapturespeedlimit}"></c:out></td>
								<td><c:out value="${laneConfig.lowercapturespeedlimit}"></c:out></td>
								<td><c:out value="${laneConfig.vehiclegroupname}"></c:out></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
		</div>
		<div id="listVehicleTravelStrategy">
			<div class="buttonbox"><button onclick="javascript:showSelectDialog('listVehicleTravelStrategyBox','rightVehicleTravelStrategyList','ajaxShowVehicleTravelStrategySelectDialog.do');">选择</button></div>
			<div id="listVehicleTravelStrategyBox">
				<table id="monitoringVehicleTravelStrategyList" style="min-width:400px;" cellspacing="0" cellpadding="0">
					<thead>
						<tr>
							<td>名称</td>
							<td>信号灯状态</td>
							<td>行驶方向</td>
							<td>是否可继续通行</td>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${listVehicleTravelStrategy}" var="vehicleTravelStrategy">
							<tr id="objId_${vehicleTravelStrategy.id}" onclick="clickSelect(this)">
								<td><input type="hidden" value="${vehicleTravelStrategy.id }"><c:out value="${vehicleTravelStrategy.name}"></c:out></td>
								<td><c:out value="${vehicleTravelStrategy.signalstate}"></c:out></td>
								<td><c:out value="${vehicleTravelStrategy.direction}"></c:out></td>
								<td><c:out value="${vehicleTravelStrategy.canmove==1? '是' : '否'}"></c:out></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
		</div>
	</div>
	</form>
	<div id="infoMonitoringLane" class="fontRed"></div>
</div>
<script>
	setTableCSS("monitoringLaneConfigList");
	setTableCSS("monitoringVehicleTravelStrategyList");
</script>